<%--
  Created by IntelliJ IDEA.
  User: Felix
  Date: 2017/8/2
  Time: 9:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%--<blockquote class="layui-elem-quote" style="line-height: 15px;">--%>
    <%--<a href="" class="bt" target="_blank" ng-click="active.tabAdd('20', '应收账单管理', '内容16', 'receivable')">应收账单管理</a> > 应收新建账单--%>
<%--</blockquote>--%>

<%--<form class="layui-form" action=""  id="seaBox" ng-hide="mySea">--%>
<div id="seaBox" ng-hide="mySea">
    <div class="layui-form-item">
        <label class="layui-form-label">起运地</label>
        <div class="layui-input-inline">
            <select class="valName" name="departProvinceCode" ng-model="departProvinceCode" ng-options="x.code as x.name for x in data.areaList" ng-change="code()">
                <option value="">--选择省份--</option>
            </select>
        </div>
        <div class="layui-input-inline">
            <select class="valName" name="departCityCode" ng-model="departCityCode" ng-options="x.code as x.name for x in departCityList" ng-change="dcity()">
                <option value="">--选择城市--</option>
            </select>
        </div>
        <div class="layui-input-inline">
            <select class="valName" name="departCountyCode" ng-model="departCountyCode" ng-options="x.code as x.name for x in departCountyList">
                <option value="">--选择区县--</option>
            </select>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">客户</label>
            <div class="layui-input-inline">
                <select class="valName" ng-model="consignorId" ng-options="x.consignorId as x.consignorName for x in data.cust" >
                    <option value="">--选择客户--</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">目的地</label>
        <div class="layui-input-inline">
            <select class="valName" ng-model="receiptProvinceCode" ng-options="x.code as x.name for x in data.areaList"  ng-change="rcode()">
                <option value="">--选择省份--</option>
            </select>
        </div>
        <div class="layui-input-inline">
            <select class="valName" ng-model="receiptCityCode" ng-options="x.code as x.name for x in receiptCityList"  ng-change="rcity()">
                <option value="">--选择城市--</option>
            </select>
        </div>
        <div class="layui-input-inline">
            <select class="valName" ng-model="receiptCountyCode" ng-options="x.code as x.name for x in receiptCountyList" >
                <option value="">--选择区县--</option>
            </select>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">订单状态</label>
            <div class="layui-input-inline">
                <select class="valName" ng-model="status" ng-options="x.id as x.name for x in orderOptions">
                    <option value="">--选择订单状态--</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">下单日期</label>
        <div class="layui-input-inline">
            <input class="layui-input valName" placeholder="开始日期" ng-model="billDateStart" ng-click="getTime($event,'billDateStart')" readonly="readonly">
        </div>
        <div class="layui-input-inline">
            <input class="layui-input valName" placeholder="截止日期" ng-model="billDateEnd" ng-click="getTimeEnd($event,'billDateEnd')" readonly="readonly">
        </div>
        <div class="layui-input-inline" style="visibility: hidden">
            <input class="layui-input valName">
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">客户订单号</label>
            <div class="layui-input-inline">
                <input type="tel" name="orderCodes" lay-verify="required|number" autocomplete="off" class="layui-input valName" ng-model="orderCodes">
            </div>
        </div>
    </div>
    <div class="layui-input-inline" style="text-align: center;width: 100%;">
        <button class="layui-btn layui-btn-normal" ng-click="resetBtn()">重置</button>
        <button class="layui-btn" ng-click="seaBtn()">查询</button>
    </div>
</div>
<%--</form>--%>
<div style="overflow-x:auto;">
    <table class="layui-table" style="min-width: 1400px;max-width: 2000px;margin-bottom: 0;">
        <tr>
            <th><input type="checkbox" ng-model="selectAll" ng-click="all(selectAll)"></th>
            <th>客户订单号</th>
            <th>客户</th>
            <th>下单日期</th>
            <th>起运地</th>
            <th>目的地</th>
            <th>数量</th>
            <th>距离</th>
            <th>订单金额</th>
            <th>状态</th>
            <th>交车日期</th>
            <th>调整次数</th>
        </tr>
        <tr ng-repeat="x in data.list">
            <td><input type="checkbox" ng-checked="selectAll" ng-model="person.state" ng-click="select(selected)" name="id_name" value="{{x.serviceOrderId}}"></td>
            <td ng-bind="x.orderCode"></td>
            <td ng-bind="x.consignorName"></td>
            <td ng-bind="x.createTime.substring(0,11)"></td>
            <td ng-bind="x.departProvinceName+'-'+x.departCityName"></td>
            <td ng-bind="x.receiptProvinceName+'-'+x.receiptCityName"></td>
            <td ng-bind="x.amount"></td>
            <td ng-bind="x.distance"></td>
            <td ng-click="adjustBtn()"><a ng-bind="x.orderCost==null ? '0' : x.orderCost" style="color:red;cursor:pointer;text-decoration: underline;"></a></td>
            <td ng-bind="x.status==10?'待接单':(x.status==30?'待支付':(x.status==40?'执行中':(x.status==50?'已提车':(x.status==60?'已发车':(x.status==70?'运输中':(x.status==80?'已交车':(x.status==90?'已完成':'')))))))"></td>
            <td ng-bind="x.arriveDate.substring(0,11)"></td>
            <td ng-bind="x.modifyNum"></td>
        </tr>
    </table>
</div>
<div style="float:right;">
    <ul class="layui-box layui-laypage layui-laypage-default" style="margin-top: 10px;" >
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==1]" href="javascript:void(0);" ng-click="p_index(this)">首页</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==1]" href="javascript:void(0);" ng-click="prev_page(this)">上一页</a>
        </li>
        <%--这块是显示多少页的--%>
        <li ng-repeat="page in pages" ng-class="{true:'active'}[p_current==page]">
            <a class="layui-laypage-curr" href="javascript:void(0);" ng-click="load_page(page)">{{ page }}</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==p_all_page]" href="javascript:void(0);" ng-click="next_page(this)">下一页</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==p_all_page]" href="javascript:void(0);" ng-click="p_last()">尾页</a>
        </li>
    </ul>
    <span>共{{count}}条</span>
    <span style="padding-left: 10px;">到第
        <input id="on" type="text" value="{{p_current}}"/>页
        <button class="layui-btn layui-btn-small" ng-click="goBtn()" style="margin-top: -5px;">确定</button>
    </span>
</div>
<input type="hidden" id="orderCost" value="">
<input type="hidden" id="aftCost" value="">
<input type="hidden" id="distance" value="">
<input type="hidden" id="aftDistance" value="">
<input type="hidden" id="comment" value="">
<%--<div class="layui-input-inline" style="text-align: center;width: 100%;">--%>
    <%--<button class="layui-btn layui-btn-normal" ng-click="active.tabAdd('20', '应收账单管理', '内容20', 'receivable')">取消</button>--%>
    <%--<button class="layui-btn" ng-click="active.nextBtn()">下一步</button>&lt;%&ndash;ng-click="active.tabAdd('22', '应收生成账单', '内容18', 'generateBillR')"&ndash;%&gt;--%>
<%--</div>--%>



